package feign;

import entity.maintenance.MaintenanceWorkOrder;
import entity.maintenance.RepairOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "maintenance",path = "/maintenance")
public interface maintenanceFeign {

    /* *
     * @Author: beisheng
     * @Descriprion: 根据维修工单ID查询基本信息
     * @Date: 2023/6/15 9:03
     * @Return: entity.maintenance.RepairOrder
     * @Param: [id]
     */

    @PostMapping("/repair-order/getOneRepairOrders")
    RepairOrder getOneRepairOrders(Integer id);

    /* *
     * @Author: beisheng
     * @Descriprion: 根据保养工单ID查询基本信息
     * @Date: 2023/6/15 9:01
     * @Return: entity.maintenance.MaintenanceWorkOrder
     * @Param: [id]
     */

    @PostMapping("/maintenance-work-order/getOneMainWorkOrder")
    MaintenanceWorkOrder getOneMainWorkOrder(Integer id);
}
